FIND_PACKAGE(OpenCV REQUIRED)
AUX_SOURCE_DIRECTORY(. LIBTRACK_SRC)
ADD_LIBRARY(TRACK STATIC ${LIBTRACK_SRC})
TARGET_LINK_LIBRARIES(TRACK ${OpenCV_LIBS})

find_path(EIGEN_INCLUDE_PATH "Eigen/Core" PATHS "/usr/local/include/eigen2" "/opt/include/eigen2" "/usr/include/eigen2"
          DOC "The path to Eigen2/Eigen3 headers")
if(EIGEN_INCLUDE_PATH)
    INCLUDE_DIRECTORIES(TRACK ${EIGEN_INCLUDE_PATH})
    endif()
